package com.easy.service.impl;

import com.easy.bean.Order;
import com.easy.dao.IOrderDao;
import com.easy.service.IOrderService;
import com.easy.utils.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    IOrderDao dao;

    @Override
    public int addOrder(Order order) {
        return dao.addOrder(order);
    }

    @Override
    public List<Order> getOrder(Order order, Page page) {
        return dao.getOrder(order,page);
    }

    @Override
    public int getOrderCount(Order order) {
        return dao.getOrderCount(order);
    }

    @Override
    public List<Order> trainerChart() {
        return dao.trainerChart();
    }

}
